package com.libre.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.libre.auth.entity.Depart;

import java.util.List;

/**
* @description   部门
* @author        庞留杰
* @date          2021/12/20 20:09
* @version       V1.0
**/
public interface DepartService extends IService<Depart>  {

    IPage<Depart> findPage(Page initMpPage,Depart depart);

    List<Depart> findList(Depart depart);

    Depart findById(String id);

    boolean add(Depart depart);

    boolean update(Depart depart);

    boolean delete(String id);
    List<Depart> departTree(Depart depart);

}
